﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using WSPay.Web.Models;

namespace WSPay.Web.Controllers
{
    public class BaseController : Controller
    {
        // GET: Base
        protected JsonResult SuccessPage(object data, PageList page)
        {
            return this.Success(string.Empty, data, page);
        }
        protected JsonResult Success(string message, object data, PageList page)
        {
            return base.Json(new JsonMessage(true, message, data, page),JsonRequestBehavior.AllowGet);
        }
    }
}